<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="menu.jsp" %>
<a href="${pageContext.request.contextPath}/questionInsert.jsp">添加</a><br>
<table>
    <table border="1">
    <thead>
        <td>试题编号</td>
        <td>试题名</td>
        <td>所属课程名</td>
        <td>试题类型</td>
        <td>试题难度</td>
        <td>选项A</td>
        <td>选项B</td>
        <td>选项C</td>
        <td>选项D</td>
        <td>试题分数</td>
        <td>正确答案</td>
        <td>操作</td>
    </thead>
    <tbody>
        <c:forEach items="${questions}" var="one">
            <tr>
                <td>${one.quesId}</td>
                <td>${one.ques}</td>
                <td>${one.courseName}</td>
                <td>${one.quesType}</td>
                <td>${one.quesHard}</td>
                <td>${one.optionA}</td>
                <td>${one.optionB}</td>
                <td>${one.optionC}</td>
                <td>${one.optionD}</td>
                <td>${one.quesScore}</td>
                <td>${one.quesAnswer}</td>
                <td><a href="questionQueryById?quesId=${one.quesId}">修改</a> <a href="deleteOneQuestion?quesId=${one.quesId}">删除</a></td>
            </tr>
        </c:forEach>
    </tbody>
    </table>
</table>
</div>
</body>
</html>
